package com.guigu.ababa.ababaclassroom.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.ababa.ababaclassroom.entity.Ab_user_complete;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface Ab_user_completeMapper extends BaseMapper<Ab_user_complete>{

    @Update("update ab_user set state =#{state} where userid=\n" +
            "(select userid from ab_user_complete  where userid=#{id})\n")
    int updatecomplete(int id,int state);


    @Update("update ab_user_complete set state =#{state} where userid=#{id}")
    int updatecompleteID(int id,int state);
}
